package com.smartcruise.base;

/**
 * Created by FengChaoQun
 * on 2018/1/20 0020
 * 标题显示信息
 */

public class TitleBuilder {

    private boolean showLeftArrow = true;
    private String title;
    private boolean showRightImage;
    private int rightImageSrc;

    public static TitleBuilder create() {
        return new TitleBuilder();
    }

    public static TitleBuilder create(boolean needShowLeftArrow, String title) {
        TitleBuilder titleBuilder = new TitleBuilder();
        titleBuilder.showLeftArrow = needShowLeftArrow;
        titleBuilder.title = title;
        return titleBuilder;
    }

    public TitleBuilder setNeedShowLeftArrow(boolean needShow) {
        showLeftArrow = needShow;
        return this;
    }

    public TitleBuilder setTitle(String title) {
        this.title = title;
        return this;
    }

    public boolean isShowLeftArrow() {
        return showLeftArrow;
    }

    public void setShowLeftArrow(boolean showLeftArrow) {
        this.showLeftArrow = showLeftArrow;
    }

    public String getTitle() {
        return title;
    }

    public boolean isShowRightImage() {
        return showRightImage;
    }

    public void setShowRightImage(boolean showRightImage) {
        this.showRightImage = showRightImage;
    }

    public int getRightImageSrc() {
        return rightImageSrc;
    }

    public void setRightImageSrc(int src) {
        this.rightImageSrc = src;
    }
}
